SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
ark_root=$(dirname $(dirname $(dirname $(dirname "$SCRIPT_DIR"))))
arkcompiler_tool_path=$(dirname "$ark_root")/arkcompiler_tool
ark_guard_root=$ark_root/arkcompiler/runtime_core/ark_guard
abckit_wrapper_root=$ark_guard_root/abckit_wrapper
arktsconfig_file=$abckit_wrapper_root/script/arktsconfig.json
src_root=$ark_guard_root/tests/ut
build_root=$ark_guard_root/tests/build/ut
projects_arktsconfig_file=$abckit_wrapper_root/script/arktsconfig_project.json
projects_root_path=$ark_guard_root/tests/projects
projects_build_path=$ark_guard_root/tests/build/projects

echo "ark_root=$ark_root"
echo "ark_guard_root=$ark_guard_root"
echo "abckit_wrapper_root=$abckit_wrapper_root"
echo "arkcompiler_tool_path=$arkcompiler_tool_path"
echo "arktsconfig_file=$arktsconfig_file"

python $abckit_wrapper_root/script/generate_abc.py --arkcompiler_tool_path $arkcompiler_tool_path --arktsconfig_file $arktsconfig_file --src_root $src_root --build_root $build_root

python $abckit_wrapper_root/script/generate_projects_abc.py --arkcompiler_tool_path $arkcompiler_tool_path --arktsconfig_file $projects_arktsconfig_file --projects_root_path $projects_root_path --projects_build_path $projects_build_path